﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200082F RID: 2095
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetSocialEventServerCacheScRsp : IMessage<GetSocialEventServerCacheScRsp>, IMessage, IEquatable<GetSocialEventServerCacheScRsp>, IDeepCloneable<GetSocialEventServerCacheScRsp>, IBufferMessage
	{
		// Token: 0x17001A8F RID: 6799
		// (get) Token: 0x06005DF0 RID: 24048 RVA: 0x000FB4E7 File Offset: 0x000F96E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetSocialEventServerCacheScRsp> Parser
		{
			get
			{
				return GetSocialEventServerCacheScRsp._parser;
			}
		}

		// Token: 0x17001A90 RID: 6800
		// (get) Token: 0x06005DF1 RID: 24049 RVA: 0x000FB4EE File Offset: 0x000F96EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetSocialEventServerCacheScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A91 RID: 6801
		// (get) Token: 0x06005DF2 RID: 24050 RVA: 0x000FB500 File Offset: 0x000F9700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetSocialEventServerCacheScRsp.Descriptor;
			}
		}

		// Token: 0x06005DF3 RID: 24051 RVA: 0x000FB507 File Offset: 0x000F9707
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSocialEventServerCacheScRsp()
		{
		}

		// Token: 0x06005DF4 RID: 24052 RVA: 0x000FB51A File Offset: 0x000F971A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSocialEventServerCacheScRsp(GetSocialEventServerCacheScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.socialEvent_ = other.socialEvent_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005DF5 RID: 24053 RVA: 0x000FB550 File Offset: 0x000F9750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSocialEventServerCacheScRsp Clone()
		{
			return new GetSocialEventServerCacheScRsp(this);
		}

		// Token: 0x17001A92 RID: 6802
		// (get) Token: 0x06005DF6 RID: 24054 RVA: 0x000FB558 File Offset: 0x000F9758
		// (set) Token: 0x06005DF7 RID: 24055 RVA: 0x000FB560 File Offset: 0x000F9760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001A93 RID: 6803
		// (get) Token: 0x06005DF8 RID: 24056 RVA: 0x000FB569 File Offset: 0x000F9769
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SocialEventServerCache> SocialEvent
		{
			get
			{
				return this.socialEvent_;
			}
		}

		// Token: 0x06005DF9 RID: 24057 RVA: 0x000FB571 File Offset: 0x000F9771
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetSocialEventServerCacheScRsp);
		}

		// Token: 0x06005DFA RID: 24058 RVA: 0x000FB580 File Offset: 0x000F9780
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetSocialEventServerCacheScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.socialEvent_.Equals(other.socialEvent_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005DFB RID: 24059 RVA: 0x000FB5D0 File Offset: 0x000F97D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.socialEvent_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005DFC RID: 24060 RVA: 0x000FB61D File Offset: 0x000F981D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005DFD RID: 24061 RVA: 0x000FB625 File Offset: 0x000F9825
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005DFE RID: 24062 RVA: 0x000FB630 File Offset: 0x000F9830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.socialEvent_.WriteTo(ref output, GetSocialEventServerCacheScRsp._repeated_socialEvent_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005DFF RID: 24063 RVA: 0x000FB680 File Offset: 0x000F9880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.socialEvent_.CalculateSize(GetSocialEventServerCacheScRsp._repeated_socialEvent_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005E00 RID: 24064 RVA: 0x000FB6D4 File Offset: 0x000F98D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetSocialEventServerCacheScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.socialEvent_.Add(other.socialEvent_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005E01 RID: 24065 RVA: 0x000FB721 File Offset: 0x000F9921
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005E02 RID: 24066 RVA: 0x000FB72C File Offset: 0x000F992C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.socialEvent_.AddEntriesFrom(ref input, GetSocialEventServerCacheScRsp._repeated_socialEvent_codec);
				}
			}
		}

		// Token: 0x0400243E RID: 9278
		private static readonly MessageParser<GetSocialEventServerCacheScRsp> _parser = new MessageParser<GetSocialEventServerCacheScRsp>(() => new GetSocialEventServerCacheScRsp());

		// Token: 0x0400243F RID: 9279
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002440 RID: 9280
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04002441 RID: 9281
		private uint retcode_;

		// Token: 0x04002442 RID: 9282
		public const int SocialEventFieldNumber = 6;

		// Token: 0x04002443 RID: 9283
		private static readonly FieldCodec<SocialEventServerCache> _repeated_socialEvent_codec = FieldCodec.ForMessage<SocialEventServerCache>(50U, SocialEventServerCache.Parser);

		// Token: 0x04002444 RID: 9284
		private readonly RepeatedField<SocialEventServerCache> socialEvent_ = new RepeatedField<SocialEventServerCache>();
	}
}
